public class Test {
    public static void main(String[] args) {
        int i = 0;
        int sum1 = 0;
        int sum2 = 0;
        while(i<=100){
            if(i%2==0){
                sum1=sum1+i;
            }
            else{
                sum2=sum2+i;
            }
            i++;
        }
        System.out.println("奇数的和："+sum2);
        System.out.println("偶数的和："+sum1);
    }
}
